* {
    padding: 0;
    margin: 0;
}

.home {
    width: 100%;
    // height: 100vh;
    box-sizing: border-box;
    background: #f7f8f9;
    padding-bottom: 56px;

    .home-page {
        padding: 0 12.5px;
        margin-bottom: 7px;
        background-color: #fff;

        .h-header {
            height: 42px;
            background-color: #fff;

            .h-icon {
                height: 22px;
                width: 22px;
                padding-top: 0px;
                &.h-icon-search {
                    position: absolute;
                    left: 2%;
                    top: 50%;
                    transform: translateY(-50%);
                }
            }

            .h-search {
                display: flex;
                justify-content: space-between;
                align-items: center;
                height: 42px;
                .h-search-pos {
                    position: relative;
                    display: flex;
                    align-items: center;
                    &.location{
                        font-size: 8px;
                        color: #666;
                    }
                }
                .h-search-input {
                    // width: 239px;
                    width: 289px;
                    height: 29px;
                    font-size: 14px;
                    padding-left: 30px;
                    box-sizing: border-box;
                    background: rgba(244, 244, 244, 1);
                    border: none;
                    border-radius: 3px;
                }
            }
        }

        .grid-col {
            .grid-img {
                height: 54px;
                width: 54px;
            }

            .grid-font {
                font-size: 11px;
                font-family: PingFangSC-Regular;
                font-weight: 400;
                color: rgba(102, 102, 102, 1);
                line-height: 20px;
            }
        }


    }

    .h-present {
        display: flex;
        height: 48px;
        width: 100%;
        padding: 0px 10px;
        margin: 10px 0 5px;
        box-sizing: border-box;
        background-color: #fff;



        .h-present-icon {
            display: flex;
            align-items: center;

            img {
                height: 22px;
                width: 22px;
            }

            .h-present-title {
                padding-left: 8px;
                font-size: 14px;
                font-family: PingFangSC-Regular;
                font-weight: 400;
                color: rgba(48, 48, 48, 1);
                line-height: 20px;
            }
        }

        .h-present-go {
            display: flex;
            margin-left: auto;

            img {
                align-self: center;
                height: 30px;
                width: 20px;
            }
        }
    }

    .day-sale {
        height: 160px;
        margin: 0px 14px;
        box-sizing: border-box;
        overflow: hidden;
        border-radius: 6px;
        background-color: rgba(222, 236, 179, 1);

        .box {
            display: flex;
            justify-content: space-around;
            padding-right: 10px;
            box-sizing: border-box;

            .box-info {
                margin: 9px 10px;
                width: 77px;
                height: 141px;

                .day-time {
                    padding: 5px;
                    box-sizing: border-box;
                    height: 73px;
                    width: 77px;
                    background: linear-gradient(180deg, rgba(99, 150, 6, 1) 0%, rgba(83, 136, 10, 1) 100%);
                    border-radius: 4px;

                    .now-day {
                        font-size: 9px;
                        font-family: PingFangSC-Regular;
                        font-weight: 400;
                        color: rgba(226, 247, 181, 1);
                        line-height: 13px;
                    }

                    .now-week {
                        font-size: 18px;
                        font-family: PingFangSC-Regular;
                        font-weight: 400;
                        color: rgba(226, 247, 181, 1);
                        line-height: 25px;
                    }
                }

                .baoping {
                    margin-top: 8px;
                    padding-top: 6px;
                    box-sizing: border-box;
                    width: 33px;
                    height: 33px;
                    background: url(/img/67.png) no-repeat center center;
                    background-size: 33px 33px;
                    text-align: center;
                    font-size: 12px;
                    font-family: PingFangSC-Medium;
                    font-weight: 500;
                    color: rgba(75, 95, 8, 1);
                    line-height: 12px;
                }

                .day-title {
                    padding-top: 8px;
                    font-size: 12px;
                    font-family: PingFangSC-Medium;
                    font-weight: 500;
                    color: rgba(89, 112, 23, 1);
                    line-height: 16px;
                }
            }

            .day-product-box {
                display: flex;
                justify-content: space-around;
                margin-top: 9px;
                width: 245px;
                height: 141px;
                background: rgba(255, 255, 255, 1);
                border-radius: 6px;

                .product-preview {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    width: 75px;                    
                    img {
                        padding-top: 10px;
                        width: 100%;
                        height: 75px;
                    }

                    .discount {
                        margin-top: 5px;
                        width: 64px;
                        height: 14px;
                        background: url(/img/78.png) no-repeat center center;
                        background-size: 100% 100%;
                        font-size: 9px;
                        font-family: PingFangSC-Regular;
                        font-weight: 400;
                        color: rgba(255, 255, 255, 1);
                        line-height: 13px;
                        text-align: center;
                    }

                    .title {
                        padding-top: 5px;
                        font-size: 11px;
                        font-family: PingFangSC-Regular;
                        font-weight: 400;
                        color: rgba(48, 48, 48, 1);
                        line-height: 15px;
                        text-align: center;
                    }
                }
            }
        }
    }

    .preference {
        display: flex;
        height: 138px;
        width: 348px;
        margin: 5px 14px 0px;
        box-sizing: border-box;
        border-radius: 6px;
        background: url(/img/31.png) no-repeat center center;
        background-size: 348px 138px;

        .preference-item {
            width: 180px;

            .preference-title {
                font-size: 15px;
                font-family: PingFangSC-Medium;
                font-weight: 700;
                padding: 8px 0px 0px 10px;
                color: rgba(48, 48, 48, 1);
            }

            .preference-message {
                font-size: 13px;
                font-family: PingFangSC-Regular;
                font-weight: 400;
                color: rgba(153, 153, 153, 1);
                padding: 5px 0px 0px 10px;
            }

            .preference-commodity-box {
                display: flex;
                justify-content: space-around;
                width: 170px;

                .preference-commodity {
                    position: relative;
                    height: 73px;
                    width: 73px;
                    margin-top: 4px;
                    background-color: #fff;
                    border-radius: 5px;

                    .commodity-tag {
                        position: absolute;
                        left: 0;
                        top: 0;
                        width: 21px;
                        height: 20px;

                        img {
                            height: 100%;
                            width: 100%;
                            vertical-align: top;
                        }

                        span {
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            font-size: 5px;
                            font-family: PingFangSC-Semibold;
                            font-weight: 600;
                            color: rgba(48, 48, 48, 1);
                            line-height: 10px;
                        }
                    }

                    .preference-img {
                        height: 65px;
                        width: 65px;
                        margin: 7px 7px;
                    }
                }
            }
        }


    }

    .h-recommend {
        text-align: center;
        margin-top: 15px;
        padding-bottom: 17px;

        h3 {
            font-size: 18px;
            font-family: PingFangSC-Medium;
            font-weight: 500;
            color: rgba(48, 48, 48, 1);
            line-height: 25px;
            letter-spacing: 11px;
        }
    }

    .product-preview {

        display: flex;
        justify-content: space-between;
        padding: 0 10px 5px 10px;
        flex-wrap: wrap;
        .test{
            margin-bottom: 10px;
        }
    }
}

.van-row {
    padding: 5px 0;
}

.van-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}